commander.exe convert ../bootloader/bootloader-uart-xmodem_RFM_F256.s37  ./RFM_DEVICE_A020.hex --outfile RFM_DEVICE_A020_BOOT_F256.hex
commander.exe convert ../bootloader/bootloader-uart-xmodem_RFM_F512.s37  ./RFM_DEVICE_A020.hex --outfile RFM_DEVICE_A020_BOOT_F512.hex

commander.exe gbl create RFM_DEVICE_A020.gbl --app RFM_DEVICE_A020.s37
commander.exe gbl create RFM_DEVICE_A020_LZMA.gbl --app RFM_DEVICE_A020.s37 --compress lzma

#
ENCRYPTION_KEY_FILE=../bootloader/encryption-key
SIGNING_KEY_TOKENS_FILE=../bootloader/signing-key-tokens.txt
#commander.exe convert  ./RFM_DEVICE_A020_BOOT_F512.hex  --tokengroup znet --tokenfile $ENCRYPTION_KEY_FILE --tokenfile $SIGNING_KEY_TOKENS_FILE  --device EFR32FG23A020F512 --outfile RFM_DEVICE_A020_BOOT_F512_SIGN.hex 


SIGNING_KEY_FILE=../bootloader/signing-key
ENCRYPTION_KEY_FILE=../bootloader/encryption-key


#commander.exe gbl create  RFM_DEVICE_A020_SIGN.gbl      --app RFM_DEVICE_A020.s37 --sign $SIGNING_KEY_FILE --encrypt $ENCRYPTION_KEY_FILE
#commander.exe gbl create  RFM_DEVICE_A020_LZMA_SIGN.gbl --app RFM_DEVICE_A020.s37 --sign $SIGNING_KEY_FILE --encrypt $ENCRYPTION_KEY_FILE  --compress lzma


# 生成OTA文件(带sha-256信息)
python ../tool/gen_ota.py RFM_DEVICE_A020.gbl
python ../tool/gen_ota.py RFM_DEVICE_A020_LZMA.gbl



